#include "pop_ball_task.h"
#include "pop_ball.h"
#include "FreeRTOS.h"
#include "task.h"
#include "cmsis_os.h"



uint8_t run_flag;
uint8_t inverse_flag;
uint8_t stop_flag;

uint8_t op_pump_flag = 0;
uint8_t cl_pump_flag = 0;

extern "C" void PopBallTask(void *argument);
osThreadId_t	popBallTaskHandle;
osThreadAttr_t popBallTask_attributes;
//运球任务
extern "C" void pop_ball_task_init()
{
    {
        popBallTask_attributes.name = "popBallTask";
        popBallTask_attributes.stack_size = 128 * 4;
        popBallTask_attributes.priority = (osPriority_t) osPriorityNormal;	//优先级normal
    }
	popBallTaskHandle = osThreadNew(PopBallTask, NULL, &popBallTask_attributes);
}

extern "C" void PopBallTask(void *argument)
{

    osDelay(500);   //初始化后先延时500ms
	for(;;)
	{

		osDelay(1);
	}
}


